package com.sc.server.system.conf.controller;

import com.sc.server.system.conf.service.IemailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("email")
@Api(description = " 发送邮件接口")
public class EmailController {
    @Autowired
    private IemailService emailService;
    @GetMapping("sendEmailBybindEmail")
    @ApiOperation("发送邮箱验证码接口")
    public  boolean sendEmailBybindEmail(@RequestParam String email){
     return    emailService.sendEmailBybindEmail(email);
    }

}
